package com.decent.ejfadmin;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * describe:启动项
 *
 * @author 陈豆豆
 * @date 2019/09/07
 */
@SpringBootApplication(scanBasePackages = {"cn.decent.component.shiro", "com.decent.ejfadmin"})
@EnableScheduling
@EnableCaching
public class EjfadminApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(EjfadminApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(EjfadminApplication.class);
    }
}
